package com.lewis.jpa.entity;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

@Entity
@Cacheable(true)
@GenericGenerator(name = "UUID_GEN", strategy = "uuid", parameters = { @Parameter(name = "separator", value = "-") })
public class TeleType extends BaseEntity<String> {

	@Id
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "UUID_GEN")
	@Column(name = "id")
	private String id;
	@NotNull
	@Column(name = "teleType")
	private String type;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
